{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/room/index')}">房间管理</a></li>
            <li class=""><a href="{:url('admin/room/add')}">添加房间</a></li>
            <li class="layui-this">编辑房间</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/room/update',['room_id' => $room_info['room_id']])}" method="post">
                    <input type="hidden" name="room_id" value="{$room_info.room_id}"/>
                    <div class="layui-form-item">
                        <label class="layui-form-label">房间名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="room_name" value="{$room_info.room_name}" required lay-verify="required" placeholder="请输入房间名称" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status" value="1" title="启用" {if condition="$room_info['status'] == 1"}checked="checked"{/if}>
                            <input type="radio" name="status" value="0" title="禁用" {if condition="$room_info['status'] == 0"}checked="checked"{/if}>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}